export default defineEventHandler(async (event): Promise <ReqPayLoad<ExamFinType>> => {
  const body = await readBody<ExamPayload>(event).catch((e: any) => {
    console.log("fin.post.ts", e);
    throw new Error(e);
  });
  const storage = useStorage("data");
  console.log("fin.post.ts", body);
  return {
    data: {
      eid: 0,
      expire: 60,
      score: 5,
      result: true,
      submit_time: new Date(),
    },
  };
});
